package com.ddm.entity.vxEntity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author horizon
 * @since 2025-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Exam对象", description="")
public class Exam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "成绩表id")
    private Long scoreId;

    @ApiModelProperty(value = "考试名称")
    private String examName;

    @ApiModelProperty(value = "平均成绩")
    private Integer averageScore;

    @ApiModelProperty(value = "标准真题关联的标准表")
    private Long standardId;

    @ApiModelProperty(value = "考试时间")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "考试限时（分钟）")
    private Integer duration;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "一等奖比例")
    private BigDecimal firstPrizeRatio;

    @ApiModelProperty(value = "二等奖比例")
    private BigDecimal secondPrizeRatio;

    @ApiModelProperty(value = "三等奖比例")
    private BigDecimal thirdPrizeRatio;

}
